<template>
  <div class="app">
        <!-- 标题 -->
    <van-nav-bar title="标题" />
    <!-- 刷新组件 -->
    <van-pull-refresh v-model="isLoading" @refresh="onRefresh">
    </van-pull-refresh>
  </div>
</template>
<script>
import { Toast } from 'vant'
export default {
  name: 'SportsView',
  data () {
    return {
      count: 0,
      isLoading: false
    }
  },
  components: {
  },
  methods: {
    onRefresh () {
      setTimeout(() => {
        Toast('刷新成功')
        this.isLoading = false
        this.count++
      }, 1000)
    }
  }
}
</script>
<style lang="less" scoped>
</style>
